import ReactDOM from 'react-dom/client';
import App from './App';
import './styles/index.less';
import { HashRouter } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import moment from 'moment';
import locale from 'antd/es/locale/zh_CN';
import 'moment/dist/locale/zh-cn';
moment.locale('zh-cn', {
    week: {
        dow: 1,
    },
});

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
    <ConfigProvider componentSize="middle" locale={locale}>
        <HashRouter>
            <App />
        </HashRouter>
    </ConfigProvider>,
);
